package com.zy.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.chat.entity.Dynamic;
import com.zy.chat.entity.ScrollResult;

import java.util.List;

/**
 * @author zy
 * @date 2023/5/17 17:12
 */
public interface DynamicService extends IService<Dynamic> {

    int insert(Dynamic dynamic);

    List<Dynamic> queryAll();

    Boolean like(long id);

    ScrollResult scroll(long max, Integer offset);

}
